package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.TeamWorkWayMapper;
import com.zch.dao.model.TeamWorkWay;
import com.zch.dao.model.TeamWorkWayExample;
import com.zch.daoEx.TeamWorkWayMapperEx;
import com.zch.daoEx.model.TeamWorkWayEx;

@Service
public class TeamWorkWayService {
	@Autowired
	private TeamWorkWayMapper teamWorkWayMapper;
    @Autowired
    private TeamWorkWayMapperEx teamWorkWayMapperEx;
    
	public int countByExample(TeamWorkWayExample example) {
		return this.teamWorkWayMapper.countByExample(example);
	}

	public TeamWorkWay selectByPrimaryKey(String id) {
		return this.teamWorkWayMapper.selectByPrimaryKey(id);
	}

	public List<TeamWorkWay> selectByExample(TeamWorkWayExample example) {
		return this.teamWorkWayMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.teamWorkWayMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(TeamWorkWay record) {
		return this.teamWorkWayMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(TeamWorkWay record) {
		return this.teamWorkWayMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(TeamWorkWayExample example) {
		return this.teamWorkWayMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(TeamWorkWay record, TeamWorkWayExample example) {
		return this.teamWorkWayMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(TeamWorkWay record, TeamWorkWayExample example) {
		return this.teamWorkWayMapper.updateByExample(record, example);
	}

	public int insert(TeamWorkWay record) {
		return this.teamWorkWayMapper.insert(record);
	}

	public int insertSelective(TeamWorkWay record) {
		return this.teamWorkWayMapper.insertSelective(record);
	}

    public List<TeamWorkWayEx> selectList(Map<String, Object> map) {
        return this.teamWorkWayMapperEx.selectList(map);
    }

    public List<TeamWorkWayEx> selectAppList() {
        return this.teamWorkWayMapperEx.selectAppList();
    }

}
